<template>
	<view class="conten">
		<topbar :top="top" @addmessage="addmasg"></topbar>
		
		<view class="txt-list" >
			<text class="txt-head">{{heads}}</text>
			<view class="tarea">
				<u-input class="tarea_input" v-model="form.name"  :clearable="false" type="text" :placeholder="placeholder" :trim="true" />
			</view>
		</view>
		
	</view>
</template>

<script>
	import topbar from "@/components/topnav/topnav.vue"
	export default {
		components: {
			topbar
		},
		data() {
			return {
				form:{
					name:"",
					live:""
				},
				heads:"商户名称",
				value: '',
				placeholder:"请输入商户名称",
				startime:"",//开始时间
				tagtime:"",//结束时间
				top: {
					titlesize: 60,
					title: '修改名称',
					center: false,
					slotRight: true,
					backText: '',
					backIconName: 'nav-back',
					right: false,
					showAction: false,
					rightSlot: false,
					useSlot: false,
					background: {
						background: '#fff'
					},
					isBack: true,
					search: false,
					custom: false,
					isFixed: true,
					keyword: '',
					isicon:true,
					icon:"checkbox-mark",
					istext:true
				},
			}
		},
		onLoad(options) {
			let arr = uni.getStorageSync('addsj');
			if(arr){
				this.form=arr
			}
		},
		onShow() {
			
		},
		methods:{
			// 保存信息
			addmasg(e){
				 uni.removeStorageSync('addsj');
				uni.setStorageSync("addsj",this.form)
				uni.navigateBack({
				    delta: 1
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.conten{
		width: 100%;
		height: 100%;
		background-color: #FFFFFF;
		.txt-list{
			width: 100%;
			margin: 0 auto;
			padding: 40rpx;
			.txt-head{
				font-size: 30rpx;
				line-height: 42rpx;
				color: #666666;
			}
			
		}
		.tarea{
			margin-top: -86rpx;
			width: 400rpx;
			margin-left: 160rpx;
			z-index: 99;
			// background-color: skyblue;
			padding: 30rpx;
			.txt-num{
				margin-right: 10rpx;
				text{
					text-align: right;
					color: #666666;
				}
			}
			.tarea_input{
				background-color: #fff;
			}
		}
	}
	.u-input{
		background-color: #F8F8F8;
	}
</style>
